package com.springstudy.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author chenrongrong
 * @since 2020/3/10 13:54
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_lesson")
public class Lesson {

    @TableField(value = "id")
    private Long id;

    @TableField(value = "name")
    private String name;

    @TableField(value = "classroom")
    private String classroom;

    @TableField(exist = false)
    private List<Person> students;
}
